<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="shortcut icon" href="<?=base_url();?>assets/ico/favicon.png">

<title><?= $template['title'];?></title>
<?= $template['metadata'];?>
<?= $this->settings_model->getSetting('google_analytics');?>
<?= $this->settings_model->getSetting('state_counter_code');?>

<!-- Bootstrap core CSS -->
<link href="<?=base_url();?>assets/css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="<?=base_url();?>assets/css/theme.css" rel="stylesheet">
<link href="<?= base_url();?>assets/css/jquery-ui.css" rel="stylesheet">
</head>

<body data-baseurl="<?= base_url(); ?>">


	<?php
			if (isset($template['partials']['nav_bar']))
				echo $template['partials']['nav_bar'];
			?>

	<div class="wrapper">
		<div class="container">

			<div class="page-header col-lg-12">
				<?php
				if (isset($template['partials']['header_search']))
					echo $template['partials']['header_search'];
				?>

			</div>
		</div>
		<!-- /.Page Header -->
	</div>
	<!-- /.container -->

	<div class="container">

		<div class="col-lg-12">
		<ul class="breadcrumb clearfix">
		
 	 	<li><a href="<?= base_url();?>"><i class="glyphicon glyphicon-home"></i> </a></li>
 	 	<li>HOME </li>
 	 	<?php 
					if($template['breadcrumbs']){
	
						foreach ($template['breadcrumbs'] as $breadcrumbs):
						if($breadcrumbs['uri']){
							echo anchor($breadcrumbs['uri'], $breadcrumbs['name'], "title=".$breadcrumbs['name']."");
							echo " <li>
							";
						}else{
							echo $breadcrumbs['name'] ;
						}
	
						endforeach;
					}
					?>
 	 	</ul>
		</div>
			
		
		

		
		
		<div class="col-lg-8">
			<?php
			if (isset($template['body']))
				echo $template['body'];
			?>
		</div>

		<div class="col-lg-4">
			
			
			<?php
			if (isset($template['partials']['listing_map_multiple']))
				echo $template['partials']['listing_map_multiple'];
			?>
			
				<?php 
				if($this->commoncall->getModule('Banner') == '51'){
				echo Modules::run('banner/banner/show',$page='INNER'); 
				}
				?>	
			
			
			<?php 
			if($this->commoncall->getModule('Recent Listing') == '51'){
			echo Modules::run('recent/recent/showListing',$cityID=0,$limit=5); 
			}
			?>

		</div>
	</div>





	<div class="footer">
		<?php echo Modules::run('static/page/footer',$pos=2); ?>
	</div>
	<!-- /.footer1 -->

	<div class="footer2">
		<div class="container">
			<ul class="list-unstyled list-inline pull-right">
				<li><?= $this->settings_model->get_web_configuration('footer_area');?></li>
				
			</ul>

		</div>
	</div>


	<!-- Bootstrap core JavaScript
    ================================================== -->
	
</body>
<!-- Placed at the end of the document so the pages load faster -->
	<script src="<?= base_url();?>assets/js/jquery-1.10.1.min.js"></script>
	<script src="<?=base_url();?>/assets/js/jquery.js"></script>
	<script src="<?=base_url();?>/assets/js/respond.min.js"></script>
	<script src="<?=base_url();?>/assets/js/bootstrap.min.js"></script>
	<script src="<?= base_url();?>assets/js/jquery-ui-1.10.3.custom.js"></script>
	<script src="<?=base_url();?>/assets/js/law.js"></script>
</html>
